const adminModel = require('./model/adminModel')
module.exports.loginDao = async function(loginInfo) {
    return await adminModel.findOne({
        where: {
            loginId: loginInfo.loginId,
            loginPwd: loginInfo.loginPwd
        }
    })
}
//更新管理员
module.exports.updateAdminDao = async function(newAccountInfo) {
    return await adminModel.update(newAccountInfo, {
        where: {
            loginId: newAccountInfo.loginId
        }
    })
}